#ifndef SYSSET_H
#define SYSSET_H
#include <QProcess>
#include <QWidget>
#include "showlabel.h"
#include "mybutton.h"
#include "timersetdlg.h"
#include "citysetdlg.h"



class SysSet : public QWidget
{
    Q_OBJECT
public:
    explicit SysSet(QWidget *parent = 0);
    int getFlagVal();
    void setFlagVal(int val);
    void setSysInit(QString city,QString timer);
    int getNetTimer();
    int writeFile(QString fileName, QString data);
protected:
     bool eventFilter(QObject *obj, QEvent *ev);
signals:
     void hourChange(int);
public slots:
    void goSave();
    void goRefresh();
    void goSetTimer();
    void goSetCity();
private:
   int falgRefresh;
   QLabel * line1;
   QLabel * line2;
   QLabel * line3;
   QLabel * line4;

   QLabel * rightCity;
   QLabel * rightNet;

   QLabel * cityIcon;
   QLabel * netIcon;
   QLabel * refreshIcon;

   ShowLabel *cityName;
   ShowLabel *netName;
   ShowLabel *refreshName;

   ShowLabel *cityValue;
   ShowLabel *netValue;
   ShowLabel *hourChar;
   Button *refreshBut;
   Button *saveBut;
   QProcess  *myProcess;
   QString cityCode;

};

#endif // SYSSET_H
